3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
A highlight style object is used to specify attributes to be applied to selected geometric objects during rendering. Any renderer that supports highlighting will use the attributes specified by a highlight style object to override incompatible attributes assigned to affected geometric objects in other ways. The attributes specified by a highlight style object are applied to a geometric object only if that geometric object also has a highlight state attribute that is set to True . See "Highlight State" , for complete details on highlight state attributes.
BeginGroup ( DisplayGroup ( ) )
Container (
HighlightStyle ( ) # highlight style object
Container (
AttributeSet ( )
DiffuseColor ( 0 0 1 ) # highlight attribute
)
Container (
Polygon ( ... )
Container (
AttributeSet ( )
DiffuseColor ( 1 0 0 )
HighlightState ( True ) # polygon will be highlighted
)
)
Container (
Box
Container (
AttributeSet ( )
DiffuseColor ( 0 1 0 )
HighlightState ( False )# box will not be highlighted
)
)
Container (
Line ( ... ) # line will not be highlighted
Container (
AttributeSet ( )
DiffuseColor ( 1 1 1 )
)
)
)
EndGroup ( )
Previous | QD3D Book | Overview | Chapter Contents | Next |